'use strict';

const Sequelize = require('sequelize');
const C = require('../common/constant');
const publishTaskModel = require('../model/publishTaskModel');
const publishInfoModel = require('../model/publishInfoModel');

const { Op } = Sequelize;
module.exports = {
    getAll: async ctx => {
        const data = await publishTaskModel.findAll();
        ctx.body = data;
    },
    getInfoAll: async ctx => {
        const data = await publishInfoModel.findAll();
        ctx.body = data;
    }
}